<!--头部 -->
{include file="common/admin_header.html"}
<!--头部 -->
<!--顶部导航 -->
{include file="common/top_nav.html"}
<!--顶部导航 -->

<!--左侧导航 -->
{include file="common/left_nav.html"}
  <!--左侧导航 -->
    </section>
        <section class="content" style="width: 600px;margin-left: 0px;">
          <div class="alert alert-info alert-dismissible text-center" style="width: 1000px;margin: 100px auto;">
            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
            <h2><i class="icon fa fa-info"></i> 警告!</h2>
            <h4>{$msg_detail}</h4>
            <h5>{if $auto_redirect}如果您不做出选择，将在<span id="spanSeconds">3</span> 秒后跳转到前一个链接地址。{/if}</h5>
          </div>
        </section>
  </div>
<script language="JavaScript">
var seconds = 3;
var defaultUrl = "{$default_url}";
onload = function()
{
  if (defaultUrl == 'javascript:history.go(-1)' && window.history.length == 0)
  {
    document.getElementById('redirectionMsg').innerHTML = '';
    return;
  }
  window.setInterval(redirection, 1000);
}
function redirection()
{
  if (seconds <= 0)
  {
    window.clearInterval();
    return;
  }

  seconds --;
  document.getElementById('spanSeconds').innerHTML = seconds;

  if (seconds == 0)
  {
    window.clearInterval();
    location.href = defaultUrl;
  }
}
</script>

{include file="common/admin_footer.html"}